home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gChannelForHighButtons, gCenterOfMenuH, gCenterOfMenuV, gMouseDownInButton, gUseMenuButton
- if gUseMenuButton then
- set castNumTemp to 13
- else
- set castNumTemp to 12
- end if
- set tempH to the mouseH
- set tempV to the mouseV
- set gMouseDownInButton to isWithinExitButton(tempH, tempV)
- if gMouseDownInButton then
- set gMouseDownInButton to 1
- set the castNum of sprite gChannelForHighButtons to castNumTemp
- set the locH of sprite gChannelForHighButtons to gCenterOfMenuH
- set the locV of sprite gChannelForHighButtons to gCenterOfMenuV
- set the visible of sprite gChannelForHighButtons to 1
- updateStage()
- end if
- end
-
- on mouseUp
- global gChannelForHighButtons, gLabelForEndScreen, gMouseDownInButton, gUseMenuButton
- if gMouseDownInButton then
- set tempH to the mouseH
- set tempV to the mouseV
- if isWithinExitButton(tempH, tempV) then
- stopSound()
- if gUseMenuButton then
- play done
- else
- go(gLabelForEndScreen)
- end if
- end if
- end if
- set the visible of sprite gChannelForHighButtons to 0
- set gMouseDownInButton to 0
- end
-